# -*- coding: utf-8 -*-
"""
Created on Tue Jun  5 21:16:41 2018

@author: Administrator
"""

#%%

from agilepipe.organize.dpabi2processing import Dpabi2processing
input_dirpath = r'/media/root/Elements4/XuanWu_last/BOLD_processing/FunImgARWS'
output_dirpath = r'/media/root/Elements4/XuanWu_last/BOLD_processing/Results'
Dpabi2processing(input_dirpath,output_dirpath)

#%%
from agilepipe.statics.Tstatcalculation import Tstat_mean

inpurt_dirpath = r'/media/root/Elements4/XuanWu_last/BOLD_processing/Results/FunImgARWS'
output_dirpath = r'/media/root/Elements4/XuanWu_last/BOLD_processing/Results'
Tstat_mean([inpurt_dirpath,output_dirpath])

#%%

from agilepipe.process import Z_standardize #,Mean_division

previous_dirpath = r'/media/root/Elements4/XuanWu_last/BOLD_processing/Results/FunImgARWS_Tstat-mean'
mask_filepath = r'/media/root/Elements4/XuanWu_last/mask/GM_mask/T1_SC_SS_GM_SN_SR_del-subj24_mean_threshold-0.5/T1_SC_SS_GM_SN_SR_del-subj24_mean_threshold-0.5.nii'
present_dirpath = r'/media/root/Elements4/XuanWu_last/BOLD_processing/Results/FunImgARWS_Tstat-mean_z'

Z_standardize([previous_dirpath,mask_filepath,present_dirpath])



